# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=sdl_net
pkgver=1.2.8
pkgrel=3
pkgdesc="A small sample cross-platform networking library"
url="https://www.libsdl.org/projects/SDL_net/"
arch=(i686 x86_64)
license=(custom)
depends=(sdl)
source=(https://www.libsdl.org/projects/SDL_net/release/SDL_net-$pkgver.tar.gz)
sha256sums=('5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4')

build() {
  cd SDL_net-$pkgver
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd SDL_net-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
